package BulkCmIRPConstDefs;
/**
 * Generated from IDL enum "ActivationMode".
 *
 * @author JacORB IDL compiler V 2.3.0, 17-Feb-2007
 * @version generated at 2013-5-20 22:07:19
 */

public final class ActivationMode
	implements org.omg.CORBA.portable.IDLEntity
{
	private int value = -1;
	public static final int _LEAST_SERVICE_IMPACT = 0;
	public static final ActivationMode LEAST_SERVICE_IMPACT = new ActivationMode(_LEAST_SERVICE_IMPACT);
	public static final int _LEAST_ELAPSED_TIME = 1;
	public static final ActivationMode LEAST_ELAPSED_TIME = new ActivationMode(_LEAST_ELAPSED_TIME);
	public int value()
	{
		return value;
	}
	public static ActivationMode from_int(int value)
	{
		switch (value) {
			case _LEAST_SERVICE_IMPACT: return LEAST_SERVICE_IMPACT;
			case _LEAST_ELAPSED_TIME: return LEAST_ELAPSED_TIME;
			default: throw new org.omg.CORBA.BAD_PARAM();
		}
	}
	public String toString()
	{
		switch (value) {
			case _LEAST_SERVICE_IMPACT: return "LEAST_SERVICE_IMPACT";
			case _LEAST_ELAPSED_TIME: return "LEAST_ELAPSED_TIME";
			default: throw new org.omg.CORBA.BAD_PARAM();
		}
	}
	protected ActivationMode(int i)
	{
		value = i;
	}
	java.lang.Object readResolve()
	throws java.io.ObjectStreamException
	{
		return from_int(value());
	}
}
